
import 'package:flutter_ahj_app/base/basewidget/HttpUtils/HttpClient.dart';

class YhpcApiRequest {
  /*
    * 部门数据
    * */
  static Stream buMenApi(String orgName) {
    Map<String, String> map = new Map();
    map["orgName"] = orgName;
    return HttpClient.getInstance().get("/xay/v1/app/organization/query", params: map);
  }

  /*
    * 首页菜单
    * */
  static Stream homeMoudleApi() {
    return HttpClient.getInstance().get("/xay/v1/permission/menu/user-menu/app", params: null);
  }

  /*
    * 排查类型
    * */
  static Stream pclxApi() {
    return HttpClient.getInstance().get("/xay/v1/hazard/investigation/list", params: null);
  }

  /*
    * 选择人员
    * */
  static Stream personApi(var map) {
    return HttpClient.getInstance().post("/xay/v1/auth/user/getEmployees", map);
  }

  /*
    * 选择部门
    * */
  static Stream organizationApi(var map) {
    return HttpClient.getInstance().get("/xay/v1/organization/getOrganizationTreeOrList",params:  map);
  }

  /*
    * 排查对象
    * */
  static Stream pcnrApi(var map) {
    return HttpClient.getInstance().get("/xay/v1/app/security/danger-source/pageListOfControlStatus", params: map);
  }

  /*
    * 排查内容
    * */
  static Stream pcnrDataApi(var map) {
    return HttpClient.getInstance().post("/xay/v1/app/security/danger-source/pageListByRiskPointId", map);
  }

  /*
    * 提交任务
    * */
  static Stream submitRwApi(var map) {
    return HttpClient.getInstance().post("/xay/v1/app/hazard/investigation/task/addOrUpdate", map);
  }

  /*
    * 隐患类别
    * */
  static Stream yhlbApi() {
    return HttpClient.getInstance().get("/xay/v1/hazard/category/list", params: null);
  }

  /*
    * 隐患登记
    * */
  static Stream yhdjApi(var map) {
    return HttpClient.getInstance().post("/xay/v1/app/hazard/saveOrUpdate", map);
  }

  /*
    * 隐患核查
    * */
  static Stream yhhcApi(var map) {
    return HttpClient.getInstance().put("/xay/v1/app/hazard/verify", map);
  }

  /*
    * 隐患上报
    * */
  static Stream yhsbApi(var map) {
    return HttpClient.getInstance().put("/xay/v1/app/hazard/verify-report-confirm", map);
  }

  /*
    * 隐患判定
    * */
  static Stream yhpdApi(var map) {
    return HttpClient.getInstance().put("/xay/v1/app/hazard/determine", map);
  }

  /*
    * 隐患整改
    * */
  static Stream yhzgApi(var map) {
    return HttpClient.getInstance().put("/xay/v1/app/hazard/rectify", map);
  }

  /*
    * 隐患验收
    * */
  static Stream yhysApi(var map) {
    return HttpClient.getInstance().put("/xay/v1/app/hazard/acceptor", map);
  }

/*
    * 隐患退回
    * */
  static Stream yhthApi(var map) {
    return HttpClient.getInstance().put("/xay/v1/app/hazard/reject", map);
  }

  /*
    * 隐患治理list
    * */
  static Stream yhzlListApi(var map) {
    return HttpClient.getInstance().get("/xay/v1/app/hazard/concise-pageList", params: map);
  }

  /*
    * 隐患治理详情
    * */
  static Stream yhzlListDetailApi(String id) {
    return HttpClient.getInstance().get("/xay/v1/app/hazard/detail/$id", params: null);
  }

  /*
    * 隐患治理详情
    * */
  static Stream yhzlDetailModuleApi(String id) {
    return HttpClient.getInstance().get("/xay/v1/hazard/info/module-detail/$id", params: null);
  }

}